package com.echo.code.thread.mode.listener;

import java.lang.reflect.Method;

/**
 * Subscriber Created by baiyap on 2018/9/24.
 */
public class Subscriber {

  private final Object subscribeObject;
  private final Method subscribeMethod;
  private boolean disable;

  public Subscriber(Object subscribeObject, Method subscribeMethod) {
    this.subscribeObject = subscribeObject;
    this.subscribeMethod = subscribeMethod;
  }

  public Object getSubscribeObject() {
    return subscribeObject;
  }

  public Method getSubscribeMethod() {
    return subscribeMethod;
  }

  public boolean isDisable() {
    return disable;
  }

  public void setDisable(boolean disable) {
    this.disable = disable;
  }
}